const mongoose = require('mongoose')
const Schema = mongoose.Schema
const schema = new Schema({
  title: { type: String },
  play: { type: Number },
  time: { type: String },
  image: { type: String },
  category: { type: mongoose.Schema.Types.ObjectId, ref: 'Category' }
})

module.exports = mongoose.model('Video', schema, 'videoes')
